package com.cloudkinto.controller.workOrder.cost;


import com.cloudkinto.base.BaseController;
import com.cloudkinto.bo.workOrder.cost.WorkOrderCostAddBo;
import com.cloudkinto.common.annotations.UserSessionRequired;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.workOrder.WorkOrderCostService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 工单费用项 前端控制器
 * </p>
 *
 * @author long
 * @since 2025-01-08
 */
@RestController
@RequiredArgsConstructor
@Api(tags = "wms工单费用项模块")
@RequestMapping("/api/admin/wms/workOrderCost")
public class WorkOrderCostWmsController extends BaseController {
    private final WorkOrderCostService workOrderCostService;

    @UserSessionRequired
    @PostMapping("/workOrderAdjustmentFee")
    @ApiOperation(value = "工单调整费用", notes = "工单调整费用")
    public SingleResult workOrderAdjustmentFee(@RequestBody @Validated WorkOrderCostAddBo req) {
        workOrderCostService.workOrderAdjustmentFee(req);
        return SingleResult.success("调整成功");
    }

}

